From: Alastair Tse Date: Fri, 10 Nov 2006 12:49:22 +0000 (+0000) Subject: [XEND] Make clear the distinction between backendPath and backendRoot X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~7 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=7bab7df15b4e936e0c99b340bfb008f523a74a03;p=xen.git [XEND] Make clear the distinction between backendPath and backendRoot in DevController. Signed-off-by: Alastair Tse --- diff --git a/tools/python/xen/xend/server/DevController.py b/tools/python/xen/xend/server/DevController.py index 1284c8b65d..cbe3b18845 100644 --- a/tools/python/xen/xend/server/DevController.py +++ b/tools/python/xen/xend/server/DevController.py @@ -455,7 +455,9 @@ class DevController: def backendPath(self, backdom, devid): - """@param backdom [XendDomainInfo] The backend domain info.""" + """Construct backend path given the backend domain and device id. + + @param backdom [XendDomainInfo] The backend domain info.""" return "%s/backend/%s/%s/%d" % (backdom.getDomainPath(), self.deviceClass, @@ -470,10 +472,10 @@ class DevController: return "%s/device/%s" % (self.vm.getDomainPath(), self.deviceClass) def backendRoot(self): - import xen.xend.XendDomain + """Construct backend root path assuming backend is domain 0.""" + from xen.xend.XendDomain import DOM0_ID from xen.xend.xenstore.xsutil import GetDomainPath - backdom = xen.xend.XendDomain.DOM0_ID - return "%s/backend/%s/%s" % (GetDomainPath(backdom), + return "%s/backend/%s/%s" % (GetDomainPath(DOM0_ID), self.deviceClass, self.vm.getDomid()) def frontendMiscPath(self):